<?php
	$admin_info 		= new Zendvn_System_Info();
	$admin_info 		= $admin_info->getMemberInfo();
	//----------------------- INPUT ELEMENTS -------------------//
	$name 				= $this->formText ( 'name', $this->Item['name'], array ('class' => 'txtmedium') ) . '<div class="view_error" id="view_name"></div>';
	$price 				= $this->formText ( 'price', $this->Item['price'], array ('class' => 'txtshort auto_numberic') );
	$soluongnguoitoida	= $this->formText ( 'soluongnguoitoida', $this->Item['soluongnguoitoida'], array ('class' => 'txtshort auto_numberic', 'title' => 'Số lượng học viên tối đa cho 1 lớp học') );
	$thoiluonghoc		= $this->formText ( 'thoiluonghoc', $this->Item['thoiluonghoc'], array ('class' => 'txtshort auto_numberic') );
	$optionDonvi		= array('Buồi' => 'Buổi', 'Ngày' => 'Ngày', 'Tháng' => 'Tháng', 'Quý' => 'Quý' , 'Năm' => 'Năm');
	$thoiluonghoc_donvi	= $this->formSelect ( 'thoiluonghoc_donvi', $this->Item['thoiluonghoc_donvi'], array(), $optionDonvi);
	$option 			= array('Không','Có');
	if(isset($this->Item['status'])){
		$trangthai 		= $this->Item['status'];
	}else{
		$trangthai 		= 1;
	}
	$status 			= $this->formRadio('status',$trangthai,null,$option, ' ');
	if(isset($this->Item['order'])){
		$order 			= $this->Item['order'];
	}else{
		$order 			= 255;
	}
	$order 				= $this->formText ('order', $order, array ('class' => 'txtshort' ) );
	$content 			= $this->cmsEditor('content',htmlspecialchars_decode($this->Item['content']),array('toolbar'=>'MyToolbar', 'language'=>'vi', 'skin' => 'v2'), 'auto', 200, true, 500, false);

?>
<div class="left_content">
	<?php echo $this->render($this->arrParam['controller'] . '/toolbar/left.php');?>
</div>

<div class="right_content">
	<div class="appContent">
		<form action="" method="post" name="appForm">
			<?php echo $this->render($this->arrParam['controller'] . '/toolbar/index.php');?>
			<?php
				//-------------------- SESSAGES ERROR ------------------
				if(count($this->messageError)>0){
					foreach ($this->messageError AS $key => $val){
						echo '<div class="listError" data="'.$key.'" rel="' . $val . '"></div>';
					}
					echo '<div class="thongbaoError goc5">Có lỗi trong quá trình xử lý.</div>';
				} 
			?>
			<div id="tabs">
				<ul>
					<li><a href="#tabs-1">Thông tin chung</a></li>
				</ul>
				<div id="tabs-1">
					<div class="tblForm">
						<div class="tbl_content">
							<table class="tbl">
								<tr>
									<td class="label">Tên khóa học <span class="red">*</span></td>
									<td><?php echo $name;?></td>
									
									<td class="label">Thời lượng học</td>
									<td><?php echo $thoiluonghoc . $thoiluonghoc_donvi;?></td>
								</tr>
								<tr>
									<td class="label">Học phí</td>
									<td><?php echo $price;?> <span class="note">(VNĐ)</span></td>
									
									<td class="label">Thứ tự</td>
									<td><?php echo $order;?></td>
								</tr>
								<tr>
									<td class="label">Số học viên</td>
									<td><?php echo $soluongnguoitoida;?></td>
									
									<td class="label">Hiển thị</td>
									<td><?php echo $status;?></td>
								</tr>
								<tr>
									<td class="label">Nội dung</td>
									<td colspan="3"><?php echo $content;?></td>
								</tr>
							</table>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<div class="clr"></div>	